<template>
  <div>
    {{msg}} {{postTitle}}

    <div v-for="item in list">
      {{item.id}}
      {{item.name}}
    </div>

    <button @click="fggh">点击一下</button>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        num: 4,
      }
    },
    mounted() {

    },
    props: ['msg', 'postTitle', 'list'],
    methods: {
      fggh() {
        this.num = this.num +1;
        let new_obj = {id:this.num, name: '李阳阳'};

        this.$emit('eventObj', new_obj);
      }
    },
  }
</script>
